package com.kexio.enterprise.integration.message.schedule;

import java.time.LocalDateTime;

/**
 * 消息调度结果
 * 
 * @author Kexio
 * @since 1.0.0
 */
public class MessageScheduleResult {
    private String scheduleId;
    private String messageId;
    private boolean scheduled;
    private LocalDateTime scheduleTime;
    private LocalDateTime nextExecutionTime;
    private String errorMessage;

    public MessageScheduleResult() {
        this.scheduleId = java.util.UUID.randomUUID().toString();
    }

    // Getters and Setters
    public String getScheduleId() { return scheduleId; }
    public void setScheduleId(String scheduleId) { this.scheduleId = scheduleId; }
    
    public String getMessageId() { return messageId; }
    public void setMessageId(String messageId) { this.messageId = messageId; }
    
    public boolean isScheduled() { return scheduled; }
    public void setScheduled(boolean scheduled) { this.scheduled = scheduled; }
    
    public LocalDateTime getScheduleTime() { return scheduleTime; }
    public void setScheduleTime(LocalDateTime scheduleTime) { this.scheduleTime = scheduleTime; }
    
    public LocalDateTime getNextExecutionTime() { return nextExecutionTime; }
    public void setNextExecutionTime(LocalDateTime nextExecutionTime) { this.nextExecutionTime = nextExecutionTime; }
    
    public String getErrorMessage() { return errorMessage; }
    public void setErrorMessage(String errorMessage) { this.errorMessage = errorMessage; }
}
